<div id="content-wrapper" class="corner">
<table>
  <tbody>
    <tr>
      <th>Id user:</th>
      <td><?php echo $user->getIdUser() ?></td>
    </tr>
    <tr>
      <th>Name:</th>
      <td><?php echo $user->getName() ?></td>
    </tr>
    <tr>
      <th>Last name:</th>
      <td><?php echo $user->getLastName() ?></td>
    </tr>
    <tr>
      <th>Login:</th>
      <td><?php echo $user->getLogin() ?></td>
    </tr>
    <tr>
      <th>Email:</th>
      <td><?php echo $user->getEmail() ?></td>
    </tr>
    <tr>
      <th>Cel Phone:</th>
      <td><?php echo $user->getMobile() ?></td>
    </tr>
    <tr>
      <th>Phone number:</th>
      <td><?php echo $user->getPhone() ?></td>
    </tr>
    <tr>
      <th>Credential:</th>
      <td><?php switch ($user->getCredential()) :
                case 1:
                    echo 'Administrator';
                    break;
                case 2:
                    echo 'Company';
                    break;
                case 3:
                    echo 'Regular User';
                    break;
              endswitch;
        ?>
      </td>
    </tr>
    <?php if ($user->getIdAccount() != "") : ?>
    <tr>
      <th>Account:</th>
      <td><?php echo $user->Account->getAccountName() ?></td>
    </tr>
    <?php endif; ?>
  </tbody>
</table>

<hr />

<a href="<?php echo url_for('users/edit?id_user='.$user->getIdUser()) ?>">Edit</a>
&nbsp;
<a href="<?php echo url_for('users/index') ?>">List</a>
</div>